import nuxtServerInit from './nuxtServerInit' // 服务端渲染钩子
import { fetchHome, changeCity } from './home' // 首页接口
import { reverse } from './reverse' // 预约

export { nuxtServerInit, reverse, fetchHome, changeCity }

// 获取二维码
export function getCode({ dispatch }, params) {
  return dispatch('fetch', {
    url: '/api/hotel/web/v1/phone/code',
    method: 'get',
    params
  })
}
